{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg" >
    <!-- 会员列表 -->
    <div class="row wrapper border-bottom white-bg page-heading news-type">
        <div class="col-sm-4">
            <h2>咨讯分类</h2>
            <ol class="breadcrumb">
                <li><a href="{:url('admin/Index/home')}">主页</a></li>
                <li><a href="#">前台设置</a></li>
                <li><strong>咨讯分类</strong></li>
            </ol>
        </div>
        <div class="col-sm-8 ">
            <div class="title-action form-inline" >
                <a href="#" class="btn btn-primary writ-type-remove"  data-toggle="modal" data-target="#myModal">新增分类</a>
            </div>
        </div>
    </div>
    <!-- 会员列表 -->
    <div class="wrapper wrapper-content">
        <div class="row">
            <!-- 搜索部分 -->
        </div>
    <!-- 会员列表 -->
    <div class="wrapper wrapper-content">
        <!-- 表格主体 -->
            <table class="table table-bordered white-bg">
                <thead>
                    <tr>
                        <th>序号</th>
                        <th style="width: 100px;">排序（倒序）</th>
                        <th>分类名</th>
                        <th>新增时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                 {volist name="list" id="v"}
                   <tr>
                       <td >{$v['news_type_id']}</td>
                       <td >{$v['nt_sort']}</td>
                       <td style="color: red;">{$v['nt_name']}</td>
                       <td>{$v['nt_addtims']}</td>
                       <td >
                       <a href="#" class="btn btn-xs btn-outline btn-success writ-tyupe-edit"  data-toggle="modal" data-target="#myModal" value="{$v['news_type_id']}">编辑</a>&nbsp;&nbsp;
                           <a href="javascript:;" class="btn btn-xs btn-primary btn-danger writ-type-delete"  value="{$v['news_type_id']}">删除</a>
                       </td>
                   </tr>
                 {/volist}
                </tbody>
            </table>
            <!-- 分页 -->
            <div class="btn-group">{$page}</div>
    </div>


        <!-- 模态窗口 -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content animated">

                    <!-- 物流-->
                    <div id="logistics-s">
                        <form method="get" class="valid-form form-horizontal order-send" onsubmit="return false;">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                                <h4 class="modal-title">填写信息</h4>
                            </div>
                            <div class="modal-body">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">分类名</label>
                                    <div class="col-sm-8 vcheck-abs">
                                        <input type="text" class="form-control" name="nt_name" value="" datatype="*" placeholder="分类名" errormsg="" sucmsg=" " />
                                    </div>
                                </div>
                            </div>
                            <div class="modal-body">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">排序</label>
                                    <div class="col-sm-8 vcheck-abs">
                                        <input type="text" class="form-control" name="nt_sort" value="0" datatype="*" placeholder="排序" errormsg="" sucmsg=" " />
                                    </div>
                                </div>
                            </div>
                            <input type="hidden" name="news_type_id" value=""/>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-white writ-type-remove" data-dismiss="modal">关闭</button>
                                <button type="button" class="submit btn btn-primary writ-tyupe-request" >提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

</body>
</html>
{include file="include:js" /}

